﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mevsukovGames
{
    class GameBlock
    {
        public Coordinates BlockCoordinates { get; protected set; }
        public ConsoleColor Color {get; protected set;}

        public GameBlock(int x, int y, ConsoleColor color)
        {
            BlockCoordinates = new Coordinates(x, y);
            Color = color;
        }

        public void MoveLeft(int step)
        {
            BlockCoordinates.ChangeCoordinates(-step, 0);
        }

        public void MoveRight(int step)
        {
            BlockCoordinates.ChangeCoordinates(step, 0);
        }

        public void MoveUp(int step)
        {
            BlockCoordinates.ChangeCoordinates(0, -step);
        }

        public void MoveDown(int step)
        {
            BlockCoordinates.ChangeCoordinates(0, step);
        }

    }
}
